package com.yuyou.train.admin.service;

public interface ISqlLockHandler {

	/**
	 * 锁在给定的等待时间内空闲，则获取锁成功 返回true， 否则返回false
	 * 
	 * @param key
	 * @param timeout
	 * @param unit
	 * @return
	 */
	boolean tryLock(String lockClass, String lockKeyId);
	
}
